const mongoose = require("mongoose");
const Sechma = mongoose.Schema;
const comment = new Sechma({
    blogId:{
        type:Sechma.Types.ObjectId,
        required:true
    },
    name:{
        type:String,
        required:true
    },
    content:{
        type:String,
        maxlength:200
    },
    thumb:{
        type:String
    },
    isShow:{
        type : Boolean,
        default : false
    },
    blogTitle:{
        type: String,
        required:true
    }

},{
    timestamps:{
       
    }
})
module.exports = mongoose.model("comment",comment);
